package com.ssm.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Desc:
 * Author: manem - chenzh
 * Date: 2023/5/31 上午10:58
 */
@Controller
@RequestMapping("/param")
public class ParamController {

    private final Logger logger = LoggerFactory.getLogger(ParamController.class);

    @GetMapping("/cn")
    public String cn(String name, Model model) {
        logger.debug(name);
        model.addAttribute("name", name);
        return "param";
    }
}
